<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
AppID: wxb4988ff0723e350a
AppSecret: 1c6ebb34bd23c64fadd54b99376b359e
https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=wxb4988ff0723e350a&secret=1c6ebb34bd23c64fadd54b99376b359e

https://api.weixin.qq.com/semantic/semproxy/search?access_token=YOUR_ACCESS_TOKE

参数形式
POST数据例子：
{
"query":"查一下明天从北京到上海的南航机票",
"city":"北京",
"category": "flight,hotel",
"appid":"wxaaaaaaaaaaaaaaaa",
"uid":"123456"
}
<div id="app">{{testdata}}
    <br>
<span v-on:click="postdata()">点击我查看调用的信息</span>
    <pre>{{testdata2 | json}}</pre>
</div>
<script src="../js/vue.min.js"></script>
<script src="../js/vue-resource.js"></script>
</body>
</html>

<script>
   // Vue.http.options.emulateJSON = true;//将提交的数据类型又request payload转换成form data 全局

    var demo = new Vue({
        el: '#app',
        data: {
            testdata:"dd",
            testdata2:""
        },
        mounted: function () {
            this.getCustomers()
        },
        methods: {
            getCustomers: function () {
                this.$http.get('/cgi-bin/token?grant_type=client_credential&appid=wxb4988ff0723e350a&secret=1c6ebb34bd23c64fadd54b99376b359e')
                        .then(function (response) { //response传参，可以是任何值
                            console.log(response)
                            this.testdata=response.body.access_token
                        })
                        .catch(function (response) {
                            console.log(response)
                        })
            },
            postdata:function(){
                this.$http.post('/semantic/semproxy/search?access_token='+this.testdata,{
                    "query":"成都市青羊区工业园b栋",
                        "city":"成都",
                        "category": "map",
                        "appid":"wxb4988ff0723e350a",
                        "uid":"1223"
                })
                        .then(function (response) { //response传参，可以是任何值

//                            this.testdata2=response.body.semantic.details.answer
                              this.testdata2=response.body
                            console.log(response);
                        })
                        .catch(function (response) {
                            console.log(response)
                        })

            }
        }
    })
</script>